package com.wolf.etl.model;


import com.alibaba.fastjson.annotation.JSONField;
import com.wolf.provider.order.info.FieldInfo;
import com.wolf.provider.order.info.IdInfo;
import com.wolf.provider.order.info.TableInfo;

import java.util.Date;

/**
 * Created by tommy's father on 2017/8/17.
 */
@TableInfo(value = "etl_transform_define")
public class EtlTransformDefineModel {

    @IdInfo
    private Long id;

    @FieldInfo("etl_define_id")
    private Long etl_define_id;

    /**
     * 创建人
     */
    @FieldInfo(value = "creator")
    private String creator = "admin";

    /**
     * 创建时间
     */
    @FieldInfo(value = "create_time")
    private Date create_time = new Date();

    /**
     * 修改人
     */
    @JSONField(format="yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_person")
    private String modified_person;

    /**
     * 修改时间
     */
    @JSONField(format="yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_time")
    private Date modified_time;

    /**
     * 租户id
     */
    @FieldInfo(value = "client_id")
    private Long client_id = 100L;

    @FieldInfo(value = "src_table_id")
    private Long src_table_id;

    @FieldInfo(value = "src_column_name")
    private String src_column_name;

    @FieldInfo(value = "target_table_id")
    private Long target_table_id;

    @FieldInfo(value = "target_column_name")
    private String target_column_name;

    @FieldInfo(value = "const_value")
    private String const_value;

    @FieldInfo(value = "is_const")
    private String is_const;

    @FieldInfo(value = "is_dynamic")
    private String is_dynamic;

    @FieldInfo(value = "status")
    private int status;

    @FieldInfo(value = "remark")
    private String remark;

    @FieldInfo("src_column_alias")
    private String src_column_alias;

    public String getSrc_column_alias() {
        return src_column_alias;
    }

    public void setSrc_column_alias(String src_column_alias) {
        this.src_column_alias = src_column_alias;
    }

    public Long getEtl_define_id() {
        return etl_define_id;
    }

    public void setEtl_define_id(Long etl_define_id) {
        this.etl_define_id = etl_define_id;
    }

    public Long getSrc_table_id() {
        return src_table_id;
    }

    public void setSrc_table_id(Long src_table_id) {
        this.src_table_id = src_table_id;
    }

    public String getSrc_column_name() {
        return src_column_name;
    }

    public void setSrc_column_name(String src_column_name) {
        this.src_column_name = src_column_name;
    }

    public Long getTarget_table_id() {
        return target_table_id;
    }

    public void setTarget_table_id(Long target_table_id) {
        this.target_table_id = target_table_id;
    }

    public String getTarget_column_name() {
        return target_column_name;
    }

    public void setTarget_column_name(String target_column_name) {
        this.target_column_name = target_column_name;
    }

    public String getConst_value() {
        return const_value;
    }

    public void setConst_value(String const_value) {
        this.const_value = const_value;
    }

    public String getIs_const() {
        return is_const;
    }

    public void setIs_const(String is_const) {
        this.is_const = is_const;
    }

    public String getIs_dynamic() {
        return is_dynamic;
    }

    public void setIs_dynamic(String is_dynamic) {
        this.is_dynamic = is_dynamic;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void check(){

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getModified_person() {
        return modified_person;
    }

    public void setModified_person(String modified_person) {
        this.modified_person = modified_person;
    }

    public Date getModified_time() {
        return modified_time;
    }

    public void setModified_time(Date modified_time) {
        this.modified_time = modified_time;
    }

    public Long getClient_id() {
        return client_id;
    }

    public void setClient_id(Long client_id) {
        this.client_id = client_id;
    }
}
